package com.syni.mdd.sjb.common.component.utils.feign.service.mddAll;

import com.syni.mdd.sjb.common.component.utils.feign.constants.Constants;
import com.syni.mdd.sjb.common.component.utils.common.utils.RpcResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @className BusinessInfoRestService
 * @description TOO
 * @Author cfx
 * @DATE 2020/4/6 22:19
 * @VERSION 1.0
 **/
@FeignClient(value = Constants.MDD_DSP_API,path = Constants.MDD_DSP_API_PATH)
@RequestMapping("/apiBusinessType")
public interface BusinessTypeRestService {
    @GetMapping("/getBusinessTypeById")
    RpcResponseVo getBusinessTypeById(@RequestParam("typeId") Integer typeId);

    @GetMapping("/getBusinessTypeByBusinessId")
    RpcResponseVo getBusinessTypeByBusinessId(@RequestParam("businessId") Integer businessId);
}
